import { _decorator, Button, Label } from 'cc';
import { addctrl, ctrl, proxy } from '../../core/module/proxy/ProxyDecorator';
import { ProxyBase } from '../../core/module/proxy/ProxyBase';
import { uiparams } from '../../core/module/ui/UIDecorator';
import { UICoverAction } from '../../core/module/ui/BaseTypes';
import { LayerEnum } from '../share/Enum';
const { ccclass, property } = _decorator;

@uiparams(LayerEnum.system, { cover: UICoverAction.SHOW })
@proxy('toast', 'prefab/toastAlert')
@ccclass('ToastAlertProxy')
export class ToastAlertProxy extends ProxyBase {
    @property(Button)
    btnOk: Button = null;
    @addctrl('c1', 1)
    @property(Button)
    btnCancel: Button = null;
    @property(Label)
    msg: Label = null;

    @ctrl
    c1 = 0
}